package hottargui.view;

import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;

import hottargui.framework.Game;
import minidraw.framework.DrawingEditor;
import minidraw.framework.Tool;
import minidraw.standard.AbstractTool;

public class ToolDecorator extends AbstractTool {

	protected Tool decoratee;
	protected Game game;
	
	public ToolDecorator(DrawingEditor editor, Game game, Tool decoratedTool)
	{
		super(editor);
		
		decoratee = decoratedTool;
		this.game = game;
	}

	@Override
	public void activate() {
		decoratee.activate();
	}

	@Override
	public void deactivate() {
		decoratee.deactivate();
	}

	@Override
	public void keyDown(KeyEvent evt, int key) {
		decoratee.keyDown(evt, key);
	}

	@Override
	public void mouseDown(MouseEvent e, int x, int y) {
		decoratee.mouseDown(e, x, y);
	}

	@Override
	public void mouseDrag(MouseEvent e, int x, int y) {
		decoratee.mouseDrag(e, x, y);
	}

	@Override
	public void mouseMove(MouseEvent evt, int x, int y) {
		decoratee.mouseMove(evt, x, y);
	}

	@Override
	public void mouseUp(MouseEvent e, int x, int y) {
		decoratee.mouseUp(e, x, y);
	}
}
